import http from '../common/http/http.js'

// 加入/移除购物车
export const toggleApi = (data) => {
  return http.post('/api/cart/toggle', data)
}

// 检查是否已加入购物车
export const isAddApi = (params) => {
  return http.get('/api/cart/isAdd', params)
}

// 获取购物车列表
export const CartListApi = (params) => {
  return http.get('/api/cart/CartList', params)
}
